#ifndef pollThread_H
#define pollThread_H

#include <QThread>
#include <QProgressBar>
#include <qprocess.h>

class pollThread : public QThread
{
    Q_OBJECT
public:
    explicit pollThread(QObject *parent = nullptr);

private slots:
    void stopThread();

private:
    int     waitsec;
    int     wadb_code;
    int     loop;
    QProgressBar *progressBar;
    QString adbstr;


signals:
    void    wiatfor1s(int);
    void    timeout();
    void    pollfinish();


protected:
    void run();
};

#endif // pollThread_H
